package com.uvlab.sitespot.service.member;

import java.util.List;

/**
 * Created by Jys on 2016/5/23 0023.
 */
public class JxMember {

    private String id;
    private String json;
    private String name;
    private String sex;
    private String age;
    private String birth;
    private String tel;
    private String address;
    private String email;
    private List<JxActivity> activities;



    public String toJson(short securitylevel){

        return "{" +
                "\"id\":\"" + id + '\"' +
                ",\"json\":\"" + json + '\"' +
                ",\"name\":\"" + name + '\"' +
                ",\"sex\":\"" + sex + '\"' +
                ",\"age\":\"" + age + '\"' +
                ",\"birth\":\"" + birth + '\"' +
                ",\"tel\":\"" + tel + '\"' +
                ",\"address\":\"" + address + '\"' +
                ",\"email\":\"" + email + '\"' +
                '}';
    }

    public void fromJson(String json){

    }



    //region getter and setter


    public List<JxActivity> getActivities() {
        return activities;
    }

    public void setActivities(List<JxActivity> activities) {
        this.activities = activities;
    }

    public  void addActivities(JxActivity activity){
        activities.add(activity);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    //endregion


    //region constructor

    public JxMember() {
    }

    public JxMember(String name) {
        this.name = name;
    }


    //endregion


    @Override
    public String toString() {
        return "JxMember{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age='" + age + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
